package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author hemiaojun
 * @Date 2020/9/15 10:18
 */
@ApiModel(description = "修改邀请码bo")
@Getter
@Setter
@NoArgsConstructor
public class UpdateInviteCodeBo {

    @ApiModelProperty("用户id")
    private String userId;

    @NotNull( message = "邀请码不能为空")
    @Size(min = 5,message = "请输入正确的邀请码")
    @ApiModelProperty("邀请码")
    private String inviteCode;

}
